package org.pzy.study.one;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * BeanA
 *
 * @author pan
 * @date 8/22/20
 */
@Component
public class BeanB {

	@Autowired
	private BeanA beanA;

	public BeanB() {
		System.out.println("BeanB初始化!");
	}

	public BeanA getBeanA() {
		return beanA;
	}

	public void setBeanA(BeanA beanA) {
		this.beanA = beanA;
	}
}
